import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  category_name: [{ required: true, message: "商品名称为必填项", trigger: "blur" }],
  status: [{ required: true, message: "状态为必填项", trigger: "blur" }],
  entity_pic: [{ required: true, message: "请上传实物图片", trigger: "blur" }],
  size_pic: [{ required: true, message: "请上传实物尺寸", trigger: "blur" }],
  file_ids: [{ required: true, message: "请上传说明书", trigger: "blur" }],
});
